package com.tt.fashionWebSite.domain;

import javax.persistence.*;
import java.io.Serializable;

/**
 * Created by isoft-work 5 on 11/19/14.
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "size_quan_tv")
@NamedQueries({
      @NamedQuery(name = "SizeQuanTuVan.getInfoByUser", query = "SELECT s FROM SizeQuanTuVan s WHERE s.thongTinThanhVien.maTV = :maTV AND s.gioiTinhTuVan = :gender") ,
})
public class SizeQuanTuVan implements Serializable {
   public static final String GET_INFO_BY_USER = "SizeQuanTuVan.getInfoByUser";

   @Id
   @GeneratedValue(strategy = GenerationType.IDENTITY)
   @Column(name = "MA_SIZE_QUAN")
   private Long maSizeQuan;

   @ManyToOne
   @JoinColumn(name = "MA_TV")
   private ThongTinThanhVien thongTinThanhVien;

   @Column(name = "SIZE_QUAN")
   private String sizeQuan;

   @Column(name = "GIOI_TINH_TV")
   private String gioiTinhTuVan;

   public Long getMaSizeQuan() {
      return maSizeQuan;
   }

   public void setMaSizeQuan(Long maSizeQuan) {
      this.maSizeQuan = maSizeQuan;
   }

   public ThongTinThanhVien getThongTinThanhVien() {
      return thongTinThanhVien;
   }

   public void setThongTinThanhVien(ThongTinThanhVien thongTinThanhVien) {
      this.thongTinThanhVien = thongTinThanhVien;
   }

   public String getSizeQuan() {
      return sizeQuan;
   }

   public void setSizeQuan(String sizeQuan) {
      this.sizeQuan = sizeQuan;
   }

   public String getGioiTinhTuVan() {
      return gioiTinhTuVan;
   }

   public void setGioiTinhTuVan(String gioiTinhTuVan) {
      this.gioiTinhTuVan = gioiTinhTuVan;
   }
}
